package cn.itsource.exam.dtos.outdto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import java.util.List;

/**
 * Created by su on 2020/7/17.
 * 树形结构返回值
 */
public class SubjectClassOutDTO {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private String label;
    private List<SubjectClassOutDTO> children;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public List<SubjectClassOutDTO> getChildren() {
        return children;
    }

    public void setChildren(List<SubjectClassOutDTO> children) {
        this.children = children;
    }
}
